<?php
class common extends spController
{
	function __construct(){
		parent::__construct();
	}
//    public function jump($url, $delay = 0){
//		echo "这里是新的跳转";
//		exit;
//    }
	public function error($msg='', $url = ''){
		$this->msg=empty($msg)?"恭喜！操作成功！点击确定返回操作前页面！":$msg;
		$this->url=!empty($url)? $url:null;
		$this->display('admin/msg/msg1.html');
		exit;
	}
    public function success($msg='', $url=''){
		$this->msg=empty($msg)?"对不起！操作失败！":$msg;
		$this->url=!empty($url)? $url:null;
		$this->display('admin/msg/msg1.html');
		exit;
    }
}